package com.woniuxy.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @ClassName ContractUtil
 * @Description TODO
 * @Author LI.hh
 * @Date 2022/9/21 10:40
 * @Version 1.0
 */
public class ContractUtil {
    public static String getContractNum(int id){
        SimpleDateFormat formatter= new SimpleDateFormat("yyyyMMdd");
        Date date = new Date(System.currentTimeMillis());
        StringBuilder builder = new StringBuilder();
        return builder.append("Woniu").append(formatter.format(date)).append(id).toString();
    }
}
